#include"Stack.h"

void Test_1(ST* s) {

	int x;

	StackInit(s);
	StackPush(s,1);
	StackPush(s,2);
	StackPush(s,3);

	for (int i = 0; i < s->top; i++) {
		printf("%d	",s->st[i]);
	}

	StackPop(s, &x);

	for (int i = 0; i < s->top; i++) {
		printf("%d	", s->st[i]);
	}

}

void Test_2(ST* s) {

	int x;

	StackInit(s);
	StackPush(s, 1);
	StackPush(s, 2);
	StackPush(s, 9);
	StackPush(s, 10);

	for (int i = 0; i < s->top; i++) {
		printf("%d	", s->st[i]);

	}
	printf("\n");

	StackPop(s, &x);

	for (int i = 0; i < s->top; i++) {
		printf("%d	", s->st[i]);
	}
	printf("\n");


	int topp = StackTop(s);
	printf("%d\n", topp);

	int num = StackSize( s);
	printf("%d\n", num);


	StackEmpty(s);

	/*StackDestroy(s);

	StackEmpty(s);*/
}
int main() {
	ST s;
	/*Test_1(&s);*/

	Test_2(&s);
	return 0;

}